package com.leetcode.demo3Solution.JianOffer;

/**
 * @description:
 * @author: tutu
 **/
public class offer58_1113 {
    public static void main(String[] args) {
        System.out.println("shitutuya:"+reverseLeftWords("abcdefg",2));
    }
    public static  String reverseLeftWords(String s, int n) {
        StringBuffer buffer=new StringBuffer();
        buffer.append(s.substring(n,s.length()));
        buffer.append(s.substring(0,n));
        return buffer.toString();
    }
}
